package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_additions")
public class Additions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "序号", type = IdType.AUTO)
    private Integer 序号;

    /**
     * 姓名
     */
    @TableField("emp_name")
    private String empName;

    /**
     * 部门
     */
    @TableField("emp_department")
    private String empDepartment;

    /**
     * 手机号
     */
    @TableField("emp_phonenumber")
    private String empPhonenumber;

    /**
     * 工号
     */
    @TableField("emp_worknumber")
    private String empWorknumber;

    /**
     * 证件号
     */
    @TableField("emp_idnumber")
    private String empIdnumber;

    /**
     * 入职日期
     */
    @TableField("date_of_entry")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dateOfEntry;

    /**
     * 累计子女教育
     */
    @TableField("cumulative_educate")
    private Double cumulativeEducate;

    /**
     * 累计住房租金
     */
    @TableField("cumulative_rent")
    private Double cumulativeRent;

    /**
     * 累计住房贷款利息
     */
    @TableField("cumulative_mortgage")
    private Double cumulativeMortgage;

    /**
     * 累计赡养老人
     */
    @TableField("cumulative_pension")
    private Double cumulativePension;

    /**
     * 累计继续教育
     */
    @TableField("cumulative_continuing_education")
    private Double cumulativeContinuingEducation;

    /**
     * 累计3岁以下婴幼儿护照
     */
    @TableField("cumulative_infant")
    private Double cumulativeInfant;

    /**
     * 小计
     */
    @TableField("subtotal")
    private String subtotal;


}
